package org.hgvc.webapp.ets.spring.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;


public class DownloadService {
	private FileService fileService;
	private String fileRootDir;
	
	public void setFileService(FileService fileService) {
		this.fileService = fileService;
	}
	public void setFileRootDir(String fileRootDir) {
		this.fileRootDir = fileRootDir;
	}
	
	public ModelAndView streamFile(HttpServletRequest req,HttpServletResponse res)
	{
		return fileService.streamFile(req, res, fileRootDir);
	}
}
